package com.superteam.mac.web.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.superteam.mac.base.web.action.BaseAction;

public class IndexConfigAciton extends BaseAction {
	
	@SuppressWarnings("unchecked")
	public ActionForward findIndexConfig(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		List list = this.getIndexConfigService().findAllIndexConfig();
		System.out.println(list.size());
		request.setAttribute("configs", list);
		return mapping.findForward("success");
	}
}
